<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>精灵图</title>
    <style>
      .box {
        width: 60px;
        height: 60px;
        background: url(D:/html/vscode/image/sprites.png);
        margin: 100px auto;
        background-position: -182px 0px;
      }
      .box2 {
        height: 25px;
        width: 25px;
        background: url(D:/html/vscode/image/sprites.png) -156px -106px;
        margin: 200px;
      }
    </style>
  </head>
  <body>
    <div class="box float"></div>
    <div class="box2 float"></div>
  </body>
</html>
